package bytes;

import java.text.DecimalFormat;
import java.text.NumberFormat;

public class NumberTest {

	public static void main(String[] args) {
		
		String name = "阿凡达.mp4";
		int index = name.indexOf( "." );
		
		String x = name.substring( 0 , index );
		System.out.println( "原点之前: " + x );
		
		String y = name.substring( index );
		System.out.println( "原点之后: " + y );
		
		for( int i = 1 ; i <= 17 ; i++ ) {
			System.out.println( x + ( i < 10 ? ( "0") + i : i ) );
		}
		
		System.out.println( "~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~" );
		
		NumberFormat nf = new DecimalFormat( "00" );
		
		for( int i = 1 ; i <= 17 ; i++ ) {
			System.out.println( x + nf.format( i ) );
		}
		
		final int size = 1 << 20 ;
		System.out.println( size );

	}

}
